function likeNews(intVal) {	
	$.getJSON(				
		HOST_VFRIEND + 'ajax/news?act=1&newsid='+intVal+'&callback=?',		
		function(response) {					
			if(response['error'] == 0) {						
				showUIMessage(response['msg']);
				$('#nlike').html(response['like']);
			} else {
				alert(response['msg']);
			}
		}
	);
}
function deleteNews(intVal, strToken) {
	if(confirm(confirm_news_delete) == true) {	
		document.location.href = HOST_VFRIEND + 'new/delete?newsid='+intVal + '&token=' + strToken;
	} 
}
function deleteCmt(intNewsId, intVal,intPage) {	
	if(confirm(confirm_delete) == true) {
		$.getJSON(				
			HOST_VFRIEND + 'comment/ncmtsend?act=1&newsid='+intNewsId+'&ncommentid='+intVal+'&page='+intPage+'&callback=?',		
			function(response) {					
				if(response['error'] == 0) {						
					showUIMessage(response['msg']);
					$('#nComment').html(response['data']);
					$('#tcmt').html(response['total']);
				} else {
					alert(response['msg']);
				}
			}
		);
	} 
}
function likeCmt(intNewsId, intVal, intPage) {	
	$.getJSON(				
		HOST_VFRIEND + 'comment/ncmtsend?act=2&newsid='+intNewsId+'&ncommentid='+intVal+'&page='+intPage+'&callback=?',		
		function(response) {					
			if(response['error'] == 0) {						
				showUIMessage(response['msg']);
				$('#nComment').html(response['data']);
				$('#tcmt').html(response['total']);
			} else {
				alert(response['msg']);
			}
		}
	);
}

onMouseOverForCmt = function(intId) {
	$('#rowCmt' + intId).show();
}
onMouseOutForCmt = function(intId) {
	$('#rowCmt' + intId).hide();
}
